//
//  NearbyDetailObject.m
//  HappyTrip
//
//  Created by GeminyXC on 15-3-24.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "NearbyDetailObject.h"

@implementation NearbyDetailObject

- (void)dealloc
{
    [_descriptionOK release];
    [_address release];
    [_arrival_type release];
    [_opening_time release];
    [_typeNumber release];
    [_tel release];
    [_website release];
    [_hottest_places release];
    [_name release];
    [super dealloc];
    
}

- (instancetype)initWithNSDictionary:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];//不要忘记单个赋值怎么赋

    }
    return self;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"description"]) {
        self.descriptionOK = value;
    } else if ([key isEqualToString:@"id"]) {
        self.idNumber = value;
    }
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}



@end
